'''
合同详情页
'''

from selenium.webdriver.common.by import By
from page.base_page import BasePage

class HtXiangQingPage(BasePage):
    url="http://192.168.1.83/crm/index.php?m=contract&a=view&id="
    #定位器
    input_ht_num=(By.CSS_SELECTOR,"#tab1 > div.back_box > table > tbody > tr:nth-child(2) > td:nth-child(2)")

    def get_ht_num(self):
        '''获取合同编号'''
        return self.driver.find_element(*self.input_ht_num).text.strip()